package com.jindy.module.dailyreport.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.dailyreport.mapper.DailyReportMapper;
import com.jindy.module.dailyreport.domain.DailyReport;
import com.jindy.module.dailyreport.service.IDailyReportService;

/**
 * 日报Service业务层处理
 * 
 * @author jindy
 * @date 2023-02-17
 */
@Service
public class DailyReportServiceImpl implements IDailyReportService 
{
    @Autowired
    private DailyReportMapper dailyReportMapper;

    /**
     * 查询日报
     * 
     * @param id 日报主键
     * @return 日报
     */
    @Override
    public DailyReport selectDailyReportById(Long id)
    {
        return dailyReportMapper.selectDailyReportById(id);
    }

    /**
     * 查询日报列表
     * 
     * @param dailyReport 日报
     * @return 日报
     */
    @Override
    public List<DailyReport> selectDailyReportList(DailyReport dailyReport)
    {
        return dailyReportMapper.selectDailyReportList(dailyReport);
    }

    /**
     * 新增日报
     * 
     * @param dailyReport 日报
     * @return 结果
     */
    @Override
    public int insertDailyReport(DailyReport dailyReport)
    {
        return dailyReportMapper.insertDailyReport(dailyReport);
    }

    /**
     * 修改日报
     * 
     * @param dailyReport 日报
     * @return 结果
     */
    @Override
    public int updateDailyReport(DailyReport dailyReport)
    {
        return dailyReportMapper.updateDailyReport(dailyReport);
    }

    /**
     * 批量删除日报
     * 
     * @param ids 需要删除的日报主键
     * @return 结果
     */
    @Override
    public int deleteDailyReportByIds(Long[] ids)
    {
        return dailyReportMapper.deleteDailyReportByIds(ids);
    }

    /**
     * 删除日报信息
     * 
     * @param id 日报主键
     * @return 结果
     */
    @Override
    public int deleteDailyReportById(Long id)
    {
        return dailyReportMapper.deleteDailyReportById(id);
    }
}
